﻿using System.IO;

namespace HeritageAcademy.Models.Loaders
{
    /// <summary>
    /// Unzip single file info
    /// </summary>
    public class CourseRawData
    {
        #region Parameters
        
        // Gets / Sets the file Buffer
        private readonly byte[] _buffer;
        
        #endregion

        #region Ctor
        
        public CourseRawData(byte[] buffer)
        {
            _buffer = buffer;
        }
        
        #endregion

        #region Methods
        
        /// <summary>
        /// Get stream of the buffer info
        /// </summary>
        /// <returns></returns>
        public Stream ToStream()
        {
            var srm = new MemoryStream(_buffer);
            return srm;
        }
        
        #endregion
    }
}